Problems with tag O(n * sqrt(n))